package cn.com.shopec.erp.purchase.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * @ClassName: PurchaseRequisitionProduct
 * @Description: 采购单实体表
 * @author: gaoyaxiong
 * @date: 2013-5-21 下午18:14:13
 */
@Entity
@Table(name="TBL_REQUISITION_PRODUCT")
public class PurchaseRequisitionProduct {
	/** id **/
	private String id;
	/**采购单号**/
	private String poNo;
	/** 请购单号 **/
//	private String prNo;
	/** 商品名称 **/
	private String ppName;
	/** 货品编码 **/
//	private String ppGoodsNo;
	private String productNo;
	/** 规格 **/
	private String ppSpecification;
	/** 单位 **/
	private String ppUnit;
	/** 采购数量 **/
	private int ppNumber;
	/** 最低采购数量 **/
	private Integer buyNum;
	/** 供应商编码 **/
	private String ppSupplierNo;
	/** 供应商名称 **/
	private String ppSupplierName;
	/** 仓库编号 **/
	private String ppWarehouseNo;
	/** 仓库名称 **/
	private String ppWarehouseName;
	/** 成本价 **/
	private String ppUnitPrice;
	/** 删除 **/
	private int deleteFlag;
	/** 请购总价 **/
	private String totalPrice;
	/** 货品零售价 **/
	private String salePrice;
	/**货品条码**/
	private String prodBarCode;
	/**商品编号**/
	private String commodityNo;
	/**退货数量**/
	private int returnNumber;
	/**退货状态锁(0.默认可退货1.退货中)***/
	private int retunStatus;
	/**保质期**/
	private String shelfLife;
	/**货品出厂日期**/
	private String manufactureTime;
	
	
	@GenericGenerator(name = "generator", strategy = "uuid.hex")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "id", unique = true, nullable = false, length = 32)
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	/*@Column(name = "PR_NO")
	public String getPrNo() {
		return prNo;
	}
	public void setPrNo(String pRNo) {
		this.prNo = pRNo;
	}*/
	@Column(name = "PP_NAME")
	public String getPpName() {
		return ppName;
	}
	public void setPpName(String ppName) {
		this.ppName = ppName;
	}
	@Column(name = "PP_PRODUCT_NO")
	public String getProductNo() {
		return productNo;
	}
	public void setProductNo(String productNo) {
		this.productNo = productNo;
	}
	@Column(name = "PP_SPECIFICATION")
	public String getPpSpecification() {
		return ppSpecification;
	}
	public void setPpSpecification(String ppSpecification) {
		this.ppSpecification = ppSpecification;
	}
	@Column(name = "PP_UNIT")
	public String getPpUnit() {
		return ppUnit;
	}
	public void setPpUnit(String ppUnit) {
		this.ppUnit = ppUnit;
	}
	@Column(name = "PP_NUMBER")
	public int getPpNumber() {
		return ppNumber;
	}
	public void setPpNumber(int ppNumber) {
		this.ppNumber = ppNumber;
	}
	@Column(name = "PP_SUPPLIER_NO")
	public String getPpSupplierNo() {
		return ppSupplierNo;
	}
	public void setPpSupplierNo(String ppSupplierNo) {
		this.ppSupplierNo = ppSupplierNo;
	}
	@Column(name = "PP_SUPPLIER_NAME")
	public String getPpSupplierName() {
		return ppSupplierName;
	}
	public void setPpSupplierName(String ppSupplierName) {
		this.ppSupplierName = ppSupplierName;
	}
	@Column(name = "PP_WAREHOUSE_NO")
	public String getPpWarehouseNo() {
		return ppWarehouseNo;
	}
	public void setPpWarehouseNo(String ppWarehouseNo) {
		this.ppWarehouseNo = ppWarehouseNo;
	}
	@Column(name = "PP_WAREHOUSE_NAME")
	public String getPpWarehouseName() {
		return ppWarehouseName;
	}
	public void setPpWarehouseName(String ppWarehouseName) {
		this.ppWarehouseName = ppWarehouseName;
	}
	@Column(name = "PP_UNIT_PRICE")
	public String getPpUnitPrice() {
		return ppUnitPrice;
	}
	public void setPpUnitPrice(String ppUnitPrice) {
		this.ppUnitPrice = ppUnitPrice;
	}
	@Column(name = "DELETE_FLAG")
	public int getDeleteFlag() {
		return deleteFlag;
	}
	public void setDeleteFlag(int deleteFlag) {
		this.deleteFlag = deleteFlag;
	}
	@Column(name = "TOTAL_PRICE")
	public String getTotalPrice() {
		return totalPrice;
	}
	public void setTotalPrice(String totalPrice) {
		this.totalPrice = totalPrice;
	}
	@Column(name = "SALE_PRICE")
	public String getSalePrice() {
		return salePrice;
	}
	public void setSalePrice(String salePrice) {
		this.salePrice = salePrice;
	}
	@Column(name = "PO_NO")
	public String getPoNo() {
		return poNo;
	}
	public void setPoNo(String poNo) {
		this.poNo = poNo;
	}
	@Column(name = "PRODBAR_CODE")
	public String getProdBarCode() {
		return prodBarCode;
	}
	public void setProdBarCode(String prodBarCode) {
		this.prodBarCode = prodBarCode;
	}
	@Column(name = "COMMODITY_NO")
	public String getCommodityNo() {
		return commodityNo;
	}
	public void setCommodityNo(String commodityNo) {
		this.commodityNo = commodityNo;
	}
	@Column(name = "RETURN_NUMBER")
	public int getReturnNumber() {
		return returnNumber;
	}
	public void setReturnNumber(int returnNumber) {
		this.returnNumber = returnNumber;
	}
	@Column(name = "RETURN_STATUS")
	public int getRetunStatus() {
		return retunStatus;
	}
	public void setRetunStatus(int retunStatus) {
		this.retunStatus = retunStatus;
	}
	@Column(name = "BUYNUM")
	public Integer getBuyNum() {
		return buyNum;
	}
	public void setBuyNum(Integer buyNum) {
		this.buyNum = buyNum;
	}
	@Column(name = "SHELFLIFE")
	public String getShelfLife() {
		return shelfLife;
	}
	public void setShelfLife(String shelfLife) {
		this.shelfLife = shelfLife;
	}
	@Column(name = "MANUFACTURE_TIME")
	public String getManufactureTime() {
		return manufactureTime;
	}
	public void setManufactureTime(String manufactureTime) {
		this.manufactureTime = manufactureTime;
	}
	
}